package com.zsrt.t04;

import static org.junit.Assert.*;

import org.junit.Test;

public class T04Test {
	
	/**
	 * 加法
	 * @throws Exception
	 */
	@Test
	public void add() throws Exception {
		
		T04 t=new T04();
		System.out.println(t.add(1, 2));
	}
	
	/**
	 * 减法
	 * @throws Exception
	 */
	@Test
	public void sub() throws Exception {
		
		T04 t=new T04();
		System.out.println(t.sub(1, 2));
	}
	
	/**
	 * 乘法
	 * @throws Exception
	 */
	@Test
	public void mul() throws Exception {
		
		T04 t=new T04();
		System.out.println(t.mul(1, 2));
	}
	
	
	/**
	 * 除法
	 * @throws Exception
	 */
	@Test
	public void chu() throws Exception {
		
		T04 t=new T04();
		System.out.println(t.chu(10, 2));
		
		System.out.println(t.chu(10, 0));
		
		System.out.println(t.chu(10, -1));
		
	}
	
	/**
	 * 求模
	 * @throws Exception
	 */
	@Test
	public void mo() throws Exception {
		
		T04 t=new T04();
		System.out.println(t.mo(10, 3));
		
		System.out.println(t.mo(10, 0));
		
		System.out.println(t.mo(10, -1));
		
	}
	
	
	
	
	
	
	
	
	
	

}
